#ifndef MAIN_H
#define MAIN_H

#include "osal_debug.h"
#include "osal_task.h"
#include "osal_addr.h"
#include "osal_wait.h"
#include "pinctrl.h"
#include "gpio.h"
#include "soc_osal.h"
#include "app_init.h"
#include "cmsis_os2.h"
#include "platform_core_rom.h"
#include "stdio.h"
#include "string.h"
#include "i2c.h"
#include "securec.h"
#include "sle_client.h"
#include "common_def.h"


#include "hal_bsp_oled/hal_bsp_ssd1306.h"
#include "uart.h"
//#include "EC800M.h"

#include "UART1.h"
#include "UART2.h"

typedef struct {
    uint8_t *value;
    uint16_t value_len;
} msg_data_t;


uint8_t buffer1[128] = {"Turn Right"};    // 右转标志位
uint8_t buffer2[128] = {"Turn Left"};     // 左转标志位
uint8_t buffer3[128] = {"Call Person"};   //呼叫紧急联系人
uint8_t buffer4[128] = {"Double Flash"};  //双闪
uint8_t buffer5[128] = {"SOS"};           //紧急求助，打开SOS投影

msg_data_t mag_Send_data1 = 
    {
    .value = buffer1,                // 指向预分配内存
    .value_len = sizeof(buffer1)     // 明确数据长度
    };

    msg_data_t mag_Send_data2 = 
    {
    .value = buffer2,                // 指向预分配内存
    .value_len = sizeof(buffer2)     // 明确数据长度
    };

    msg_data_t mag_Send_data3 = 
    {
    .value = buffer3,                // 指向预分配内存
    .value_len = sizeof(buffer3)     // 明确数据长度
    };

    msg_data_t mag_Send_data4 = 
    {
    .value = buffer4,                // 指向预分配内存
    .value_len = sizeof(buffer4)     // 明确数据长度
    };

    msg_data_t mag_Send_data5 = 
    {
    .value = buffer5,                // 指向预分配内存
    .value_len = sizeof(buffer5)     // 明确数据长度
    };








#endif